import java.util.Scanner;

public class Test {
    public static void main(String[] args) {
        Scanner num = new Scanner(System.in);
        int a = num.nextInt();
        int b = num.nextInt();
        System.out.println(compare(a, b));
    }

    public static int compare(int a, int b) {
        if (a < b) {
            return a;
        } else {
            return b;
        }
    }
}
